package com.springsecurity.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author : yj
 * @className : TemplatesCotroller
 * @creat : 2020-08-16 22:16
 * @desc : TODO
 */

@Controller
@RequestMapping("/")
public class TemplatesController {


    @GetMapping("login")
    public String toLogin() {
        return "login";
    }

    @GetMapping("courses")
    public String toCourses() {
        return "courses";
    }
}
